package org.example.service.impl;

import org.example.service.UserService;
import org.springframework.stereotype.Service;

import javax.swing.plaf.UIResource;
@Service
public class UserServiceImpl implements UserService {
    @Override
    public void getById() {
        //模拟连接数据库取数据的过程
        String s="";
        for (int i = 0; i < 100; i++) {
            s+=i;
        }

    }

    @Override
    public void getAll() {
        String s="";
        for (int i = 0; i < 1000; i++) {
            s+=i;
        }

    }

    @Override
    public void add() {
        System.out.println("添加用户");
    }

    @Override
    public void update() {
        System.out.println("修改用户");
        //System.out.println(10/0);
    }

    @Override
    public void update1(String str) {
        System.out.println("执行update1");
    }

    @Override
    public String update2() {
        System.out.println("执行update2");
 /*       String str =null;
        str.length();*/
        return "aaa";
    }


}
